<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2017/8/15 0015
  Time: 12:40
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!--添加标签库!-->
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page isELIgnored="false" %>
<html>
<head>
    <title>用户列表</title>
</head>
<body>
    <a href="add">添加</a>---->
    <c:choose>
        <c:when test="${sessionScope.username ne null}">${sessionScope.username}</c:when>
        <c:otherwise>
            <a href="${pageContext.request.contextPath}/login.jsp">登录</a>
        </c:otherwise>
    </c:choose>
    </br>
    <c:forEach items="${users}" var="item">
        <a href="${item.value.username}/find">${item.value.username}</a>----${item.value.nickname}----${item.value.password}----${item.value.email}
        <a href="${item.value.username}/update">修改</a><a href="${item.value.username}/delete">删除</a></br>
    </c:forEach>
</body>
</html>
